package com.zhijian.warehouse.manage.entity.vo.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.List;

/**
 * 用户的小组or班级 查询条件vo
 *
 * @author auto
 * @version 1.0
 * @date 2023-11-06 20:17:29
 */
@Data
@Api(tags = "用户的小组or班级查询条件vo")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserGroupOrClassSearchVo implements Serializable {

    private static final long serialVersionUID = -1;

    /**
     * 页码
     */
    @ApiModelProperty("页码")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum;

    /**
     * 数据库查询参数，前端忽略
     */
    @ApiModelProperty(value = "页码", hidden = true)
    private Integer startIndex;

    /**
     * 条数
     */
    @ApiModelProperty("每页显示的条数")
    @Min(value = 1, message = "每页显示的条数最小为1")
    private Integer pageSize;

    /**
     * 排除id
     */
    @ApiModelProperty(value = "排除id", hidden = true)
    private Long notId;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

    /**
     * 类型，1：班级，2：小组
     */
    @ApiModelProperty("类型，1：班级，2：小组")
    private Byte type;

    /**
     * id数组
     */
    @ApiModelProperty(value = "id数组", hidden = true)
    private List<Long> idList;

}